import { useRequest } from 'ahooks'

const useMyRequest = (callback = () => {}, options = {}) => {
  const result = useRequest(
    callback,
    {
      retryCount: 0,
      manual: true,
      ...options
    }
  )
  return result
}

export default useMyRequest
